package com.bbm.bbmanage.entity;

import java.util.Date;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (House)表实体类
 *
 * @author lionkliu
 * @since 2024-03-23 19:32:01
 */
@SuppressWarnings("serial")
@Data
@TableName("house")
public class House implements Serializable {

    @TableId
    private Long id;

    private String title;

    private String img;

    private String des;

    private String address;

    // 最多入住人数
    private Integer maxAdu;


    private Integer userId;

    private Integer categoryId;

    private Integer rest;

    private Double price;

    private String notice;

    private String stars;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Integer delFlag;


}
